package com.example.rabbitmq4.listener;

import com.example.rabbitmq4.constant.Constants;
import com.rabbitmq.client.Channel;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;



@Component
public class PermanentListener {
//    @RabbitListener(queues = Constants.PERMANENT_QUEUE)
    public void listener1(Message message, Channel channel) {
        System.out.println("接收到消息:" + message + channel);
    }
}
